home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / program / 363 / xlisp20 / xlisp_c / xlglob.c < prev    next >
Text File  |  1990-02-03  |  2KB  |  65 lines

  1. /* xlglobals - xlisp global variables */
  2. /*    Copyright (c) 1985, by David Michael Betz
  3.     All Rights Reserved
  4.     Permission is granted for unrestricted non-commercial use    */
  5.  
  6. #include "xlisp.h"
  7.  
  8. /* symbols */
  9. NODE *true = NIL;
  10. NODE *s_quote = NIL, *s_function = NIL;
  11. NODE *s_bquote = NIL, *s_comma = NIL, *s_comat = NIL;
  12. NODE *s_evalhook = NIL, *s_applyhook = NIL;
  13. NODE *s_lambda = NIL, *s_macro = NIL;
  14. NODE *s_stdin = NIL, *s_stdout = NIL;
  15. NODE *s_tracenable = NIL, *s_tlimit = NIL, *s_breakenable = NIL;
  16. NODE *s_car = NIL, *s_cdr = NIL;
  17. NODE *s_get = NIL, *s_svalue = NIL, *s_splist = NIL;
  18. NODE *s_eql = NIL, *k_test = NIL, *k_tnot = NIL;
  19. NODE *k_optional = NIL, *k_rest = NIL, *k_aux = NIL;
  20. NODE *a_subr = NIL, *a_fsubr = NIL;
  21. NODE *a_list = NIL, *a_sym = NIL, *a_int = NIL, *a_float = NIL;
  22. NODE *a_str = NIL, *a_obj = NIL, *a_fptr = NIL;
  23. NODE *oblist = NIL, *keylist = NIL, *s_unbound = NIL;
  24.  
  25. /* evaluation variables */
  26. NODE *xlstack = NIL;
  27. NODE *xlenv = NIL;
  28.  
  29. /* exception handling variables */
  30. CONTEXT *xlcontext = NULL;    /* current exception handler */
  31. NODE *xlvalue = NIL;        /* exception value */
  32.  
  33. /* debugging variables */
  34. int xldebug = 0;        /* debug level */
  35. int xltrace = -1;        /* trace stack pointer */
  36. NODE **trace_stack = NULL;    /* trace stack */
  37.  
  38. /* gensym variables */
  39. char gsprefix[STRMAX+1] = { 'G',0 };    /* gensym prefix string */
  40. int gsnumber = 1;        /* gensym number */
  41.  
  42. /* i/o variables */
  43. int xlplevel = 0;        /* prompt nesting level */
  44. int xlfsize = 0;        /* flat size of current print call */
  45. int prompt = TRUE;        /* input prompt flag */
  46.  
  47. /* dynamic memory variables */
  48. long total = 0L;        /* total memory in use */
  49. int anodes = 0;            /* number of nodes to allocate */
  50. int nnodes = 0;            /* number of nodes allocated */
  51. int nsegs = 0;            /* number of segments allocated */
  52. int nfree = 0;            /* number of nodes free */
  53. int gccalls = 0;        /* number of gc calls */
  54. struct segment *segs = NULL;    /* list of allocated segments */
  55. NODE *fnodes = NIL;        /* list of free nodes */
  56.  
  57. /* object programming variables */
  58. NODE *self = NIL, *class = NIL, *object = NIL;
  59. NODE *new = NIL, *isnew = NIL, *msgcls = NIL, *msgclass = NIL;
  60. int varcnt = 0;
  61.  
  62. /* general purpose string buffer */
  63. char buf[STRMAX+1] = { 0 };
  64.  
  65. əəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəə